// 1000  ok
// 1004  error错误信息
// 



/**
 * 随机生成指定长度字符串
 */
const str: Array<string> = 'q,w,e,r,t,y,u,i,o,p,l,k,j,h,g,f,d,s,a,z,x,c,v,b,n,m,1,0,2,3,4,5,6,7,8,9'.split(",");
export const getNonce = (n: number = 10): string => {
      let backStr: string = '';

      for (var i = 0; i < n; i++) {
            var s = str[Math.floor(Math.random() * str.length)];

            if (i % 2 === 0) {
                  s = s.toLocaleUpperCase();
            }
            backStr += s;
      }

      return backStr;
}


// 用户端的登录加密值
export const app_secret:string = 'amMpOQGjxfVKReR3itS29v70SwZQlDq0';